﻿

//供后台生成子菜单时指定超链接位置
function link(target)
{
    var menus=document.getElementById('accMenu');
    var links=menus.getElementsByTagName('a');
    for( i in links)
    {
       
       
        links[i].target=target;
       
    }
  
}

var num=0;
function display()
{

    num=num+1;
  
    if(num%2!=0)
    {
        
        document.getElementById("left_menu").style.visibility="hidden";
        document.getElementById("left_top").style.visibility="hidden";
        document.getElementById("display").innerHTML="显示";
        document.getElementById("left").style.width="10px";
        //父窗口的左右iframe宽度设置
        parent.document.getElementById("ifrLeft").width="20px";
        parent.document.getElementById("ifrRight").width="980px";
        
        
    }
    else
    {
        document.getElementById("display").innerHTML="隐藏";
        document.getElementById("left_menu").style.visibility="visible";
        document.getElementById("left_top").style.visibility="visible";
        document.getElementById("left").style.width="180px";
         //父窗口的左右iframe宽度设置
        parent.document.getElementById("ifrLeft").width="180px";
        parent.document.getElementById("ifrRight").width="820px";
    }
    
}